Skip to content

Conversation

@rafaeljusto
Copy link
Contributor

When building the JSON schema for an array we should always allow "null" since any slice in Go can contain a nil value.

Resolves #48

When building the JSON schema for an array we should always allow "null" since
any slice in Go can contain a `nil` value.

Resolves google#48
@rafaeljusto
Copy link
Contributor Author

This is another behaviour change, so I assume we would also need to wrap it around JSONSCHEMAGODEBUG? Should we keep the same typeschemasnull=1 flag value or use a different one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow null for arrays

1 participant